package User;

import BOOK.BookList;
import IOperation.IOperation;

/**
 * Created with IntelliJ IDEA.
 * User: wenxiwen
 * Date: 2022/4/14
 * Time: 20:37
 * Description: No Description
 */
public abstract class Animal {
    protected String name;
    protected IOperation[] ioperations;

    public Animal(String name) {
        this.name = name;

    }

    public abstract int menu();

    public void fun(int pos, BookList booklist) {
        ioperations[pos] .work(booklist);
    }
}